package vn.intelsoft.vlogvn.view;


import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.LinearLayout;

public abstract class AbsCustomView extends LinearLayout {

	public AbsCustomView(Context context) {
		super(context);
	}
	
	public AbsCustomView(Context context, AttributeSet attrs) {
		super(context, attrs);
	}
	
	protected void setContentView(int layout){
		View view = inflate(getContext(), layout, null);
		setContentView(view);
	}
	protected void setContentView(View layout){
		this.removeAllViewsInLayout();
		LayoutParams params = new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);
		addView(layout, params);
	} 
}
